PHY MAKE RIGID BODY STATIC CONVEX

Create a new static convex rigid body that is attached to an object.

  Syntax
PHY MAKE RIGID BODY STATIC CONVEX ID, file$
PHY MAKE RIGID BODY STATIC CONVEX ID, file$, material
PHY MAKE RIGID BODY STATIC CONVEX ID
PHY MAKE RIGID BODY STATIC CONVEX ID,material
  Parameters
ID
Integer
identification number of the 3D object that you want to be represented by a static convex mesh in the simulation
file$
String
this parameter is optional and when used the data from the object will be saved out to the specified file, this can be useful for some complex objects as the computational time may be long, this file can later be loaded in much faster using the command p
material
Integer
this parameter is optional, a material can be specified if required upon creation of a static convex rigid body mesh, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as

  Returns

  Description

This command will create a representation of the object as a convex mesh within the physics simulation. This mesh is not displayed on screen and is used internally for the simulation as a way of representing your object. As the object will be represented by a static convex rigid body it will remain immoveable and will not be affected by forces such as gravity etc.

The physics simulation will take over control of the object that was attached to the convex rigid body object. You will not be able to move this object using commands such as position object.

Note that the selected object should be convex and if this is not the case the results may not be desirable. It may be helpful to enable the debugger to ensure that the convex mesh representation in the simulation matches your requirements.

  Example Code
No example code is provided for this command